package components.borders;

import images.GameImagesMap;

import java.awt.Color;

import scenes.MainGameScene;

import com.uqbar.vainilla.appearances.Rectangle;
import components.LifeCounter;
import components.ball.NormalBall;
import components.powerups.PowerUp;

public class DeadBorder extends Border<MainGameScene> {
	
	public DeadBorder(LifeCounter notifable, int width, int height, double x, double y) {
		super(width, height, x, y, GameImagesMap.getImage("firewall") );
	}

	public void collideWithBall(NormalBall ball) {
	
		this.getScene().ballDroped(ball);
	}
	public void collideWithPowerUp(PowerUp pup){
		pup.destroyComponent();
	}
}
